#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

void init_array(int arr[], int size)
{
	for (int i = 0; i < size; i++)
	{
		arr[i] = 0;
	}
}

void reverse(int arr[], int left, int right)
{
	if (left < --right)
	{
		int temp = arr[left];
		arr[left] = arr[right];
		arr[right] = temp;
		reverse(arr, left+1, right);
	}
}

void printArray(int arr[], int size)
{
	for (int i = 0; i < size; i++)
		printf("%d ", arr[i]);
	printf("\n");
}

int main()
{
	int arr[] = { 2,58,416,455,15,67,234,78,19,64,412 };
	int size = sizeof(arr) / sizeof(arr[0]);
	printArray(arr, size);

	reverse(arr, 0, size);
	printArray(arr, size);

	init_array(arr, size);
	printArray(arr, size);

	return 0;
}